London | 26-ITP-JAN | Kayanat Suleman | Sprint 2 | Form Controls#1086
London | 26-ITP-JAN | Kayanat Suleman | Sprint 2 | Form Controls#1086KayanatSuleman wants to merge 10 commits intoCodeYourFuture:mainfrom
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cjyuan
left a comment
There was a problem hiding this comment.
Code is free of syntax error and well indented. Well done!
I only have a challenge for you (see the inline comment).
|
Changes look good. Do you know what the regular expression |
|
Hi cjyuan, thank you for the additional question. Upon doing some research I found that this is a regex expression which helps to describe what patterns of text are allowed/disallowed. I understand that the "." matches any single character, the "*" means any characters, length or nothing, the "\S" means any non-whitespace character - so the rule becomes - whatever input the user enters must contain at least one non-whitespace character somewhere. I then tested this solution using devtools console to see if I only entered " ", what would happen - this failed as it does not contain a non-space character, the second test was "Ka" - this passes and finally " K " also passes as it satisfies the rule. |

Learners, PR Template
Self checklist
Changelist
fieldsetandlegendQuestions
None yet, happy to make any amendments. Thank you for reviewing.